#include <queue>
#include <iostream>

using namespace std;

int main() {
    priority_queue<int, vector<int>, greater<int>> minHeap;

    minHeap.push(9);
    minHeap.push(5);
    minHeap.push(2);
    minHeap.push(8);
    cout << "size of minHeap: " << minHeap.size() << endl; // Should print 4

    while (!minHeap.empty()) {
        cout << minHeap.top() << " "; // Should print 2 5 8 9
        minHeap.pop();
    }
    cout << endl;

    return 0;
}